package com.code.qgjx.service;

import com.code.qgjx.entity.ResignCommit;
import java.util.List;
import java.util.Map;

public interface ResignCommitService {
    // 创建辞职申请
    boolean createResignCommit(ResignCommit resignCommit);
    
    // 更新辞职申请状态
    boolean updateResignCommit(ResignCommit resignCommit);
    
    // 获取辞职申请详情
    ResignCommit getResignCommit(Long id);
    
    // 获取用户的所有辞职申请（分页）
    List<Map> getResignCommitsByUserId(Long userId, int sta,int offset, int limit);
    
    // 获取教师需要审批的辞职申请（分页）
    List<ResignCommit> getResignCommitsByTeacherId(Long teacherId, int offset, int limit);

    // 获取用户的辞职申请总数
    int getResignCommitCountByUserId(Long userId);

    // 获取教师需要审批的辞职申请总数
    int getResignCommitCountByTeacherId(Long teacherId);

    // 删除辞职申请
    boolean deleteResignCommit(Long id);
} 